//
//  RMMAdressView.m
//  Romomo
//
//  Created by puman on 2016/12/26.
//  Copyright © 2016年 mazegong. All rights reserved.
//

#import "RMMAdressView.h"

@implementation RMMAdressView

- (instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        UIImageView *imageV = [[UIImageView alloc] initWithFrame:CGRectMake(kScreenWideth / 2 - 41, kScreenHeight - 382 - 64, 82, 82)];
        imageV.image = [UIImage imageNamed:@"通讯录图标@3x"];
        [self addSubview:imageV];
        
        UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(0, imageV.bottom + 8, kScreenWideth, kMaric)];
        label.text = @"您还没有上门服务的地址";
        label.textColor = COLORFROMCODE(0xAEAEAE, 1);
        label.font = kFont(13);
        label.textAlignment = NSTextAlignmentCenter;
        [self addSubview:label];
        
        _addBut = [UIButton buttonWithType:(UIButtonTypeCustom)];
        _addBut.frame = CGRectMake(kScreenWideth / 2 - 60, label.bottom + 8, 120, 40);
        _addBut.layer.cornerRadius = kMaric;
        _addBut.layer.borderColor = kBasicColor.CGColor;
        _addBut.layer.borderWidth = 1;
        [_addBut setTitle:@"新增地址" forState:(UIControlStateNormal)];
        [_addBut setTitleColor:kBasicColor forState:(UIControlStateNormal)];
        _addBut.titleLabel.font = kFont(16);
        [self addSubview:_addBut];

        
    }
    return self;
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
